//
//  ViewController.m
//  03-UIGestureRecoginizer
//
//  Created by dllo on 16/7/18.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // 手势识别器
    // 轻拍
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
    // 点击几次触发, 默认为1
    tap.numberOfTapsRequired = 1;
    // 几个手指触发 (按 option alt) 默认为1
    tap.numberOfTouchesRequired = 1;
    [self.view addGestureRecognizer:tap];
    // 长按
    // 清扫
    // 平移
    // 捏合
    // 旋转
    // 屏幕边缘手势
    //
    
}
- (void)tapAction:(UITapGestureRecognizer *)tap {
    NSLog(@"轻拍");
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
